package edu.byu.isys413.samlam;

/**
 * The super-class of all business objects in the program.
 *
 * @author Conan C. Albrecht
 */
public abstract class BusinessObject {
    
  boolean objectAlreadyInDB = false;
    /**
     * id
     */
  protected String id = null;
    /**
     * dirty
     */
  protected boolean dirty = false;

  /**
     * Creates a new instance of BusinessObject
     * @param id id
     */
  public BusinessObject(String id) {
      this.id = id;
  }//constructor

    /**
     * get ID
     * @return bo
     */
  public String getId() {
      return id;
  }

    /**
     * set ID
     * @param id ID
     */
  public void setId(String id) {
      this.id = id;
  }

  boolean isObjectAlreadyInDB() {
    return objectAlreadyInDB;
  }

  void setObjectAlreadyInDB(boolean objectAlreadyInDB) {
    this.objectAlreadyInDB = objectAlreadyInDB;
  }

    /**
     * Is Dirty
     * @return bo
     */
    public boolean isDirty() {
        return dirty;
    }

    /**
     * Set Dirty
     * @param dirty dirty
     */
    public void setDirty(boolean dirty) {
        this.dirty = dirty;
    }

}//class
